package balmysundaycandy.marble.controller;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;
import org.slim3.datastore.Datastore;

import balmysundaycandy.marble.broker.meta.LogEnrtyMeta;

public class DeleteLogsController extends Controller {

	@Override
	protected Navigation run() {
		Datastore.delete(Datastore.query(new LogEnrtyMeta()).asKeyList());

		return forward("WEB-INF/jsp/logs.jsp");
	}
}
